package com.liu.eduService.client;

import com.liu.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * **************
 * 项目名称: testgulili <br/>
 * 文件名称:  <br/>
 * 文件描述: todo vod视频服务的接口 <br/>
 * 文件创建：刘世锦 <br/>
 * 创建时间: 2022/1/14 <br/>
 *
 * @author Lenovo
 * @version v1.0 <br/>
 * @update [序号][日期YYYY-MM-DD][更改人姓名][变更描述]<br/>
 * *************
 */
@Component
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClientImpl.class)
public interface VodClient {


    //    上传文件
    @ApiOperation(value = "文件上传")
    @PostMapping("/Video/file/uploadVideo")
    public R upload(MultipartFile file) throws IOException;

    // 删除阿里视频 根据videoID
    @DeleteMapping("/Video/file/Deletevideo/{VideoSourceId}")
     R deleteVideo(@PathVariable("VideoSourceId") String VideoSourceId);

//    删除多个阿里视频
    @DeleteMapping("/Video/file/DeleteseveralVideo")
    public R DeleteseveralVideo(@RequestParam("VideoList") List<String> VideoList);
}
